package com.cy.lib;

import android.app.Activity;
import android.os.Bundle;

import com.cy.lib.download.DownloadService;

import java.io.File;

/**
 * Created by CY on 2015/8/24.
 */
public class TestActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        textDownloadService();
    }

    private void textDownloadService() {
        File file = new File(getExternalCacheDir(), "bd_logo1.apk");
        DownloadService.startActionDownload(this, "http://120.31.131.105:8051/apk/TouSuBao.apk", file, true);
    }
}
